<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>

<body>
    <script>
        fn();
        console.log('输出文字');

        for (var i = 0; i < 100; i++) {
            console.log(i);

        }
        console.log('循环完成');


        function fn() {
            console.log('这是提个方法');
        }

    </script>
</body>

</html>